package services

import (
	global2 "longmen/server/config/global"
	"longmen/server/pkg/db/mysql/models/models_sports"
)

func DeleteMatchSchedule(ids []int, sportId int) {
	if len(ids) == 0 {
		return
	}
	var model models_sports.MatchTempSchedule
	err := global2.Sport().Where("match_id in ? and sport_id = ?", ids, sportId).Delete(&model).Error
	if err != nil {
		global2.Log.Error("删除赛程失败：", err, "ids: ", ids)
		return
	}
}
